package aviatorp

// aviator.sql

type AviatorRoundEntity struct {
	Rid         int64   `db:"rid"`
	InstId      int64   `db:"instid"`
	Start       int64   `db:"start"`
	End         int64   `db:"end"`
	Sseed       string  `db:"sseed"`
	Sseed256    string  `db:"sseed256"`
	Clientseeds []byte  `db:"clientseeds"`
	H512        string  `db:"h512"`
	Hhex        string  `db:"hhex"`
	Hdecimal    int64   `db:"hdecimal"`
	Result      float64 `db:"result"`
	Status      int32   `db:"status"`
	Count       int64   `db:"count"`
	CashOuts    int64   `db:"cashouts"`
	Runt        int64   `db:"runt"`
	CrashTime   int64   `db:"crashtime"`
	Created     int64   `db:"created"`
	Updated     int64   `db:"updated"`
}

type AvtRoundActEntity struct {
	BetId    uint64  `db:"id"`
	RoundId  int64   `db:"roundid"`
	Dateline int64   `db:"dateline"`
	Uid      uint64  `db:"uid"`
	Idx      string  `db:"idx"`
	Op       int32   `db:"op"`
	Result   float64 `db:"result"`
	Payout   float64 `db:"payout"`
}

type AviatorPoolsValue struct {
	TotalPoolValue  int64
	RewardPoolValue int64
}

type AvtNodeRoundEntity struct {
	NodeId   int64   `db:"nodeid"`
	InstId   int64   `db:"instid"`
	RoundId  int64   `db:"roundid"`
	Status   int32   `db:"status"`
	Result   float64 `db:"result"`
	Dateline int64   `db:"dateline"`
}
